home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / games_d / rtanksrc.zip / ROBOTANK.DOC < prev    next >
Text File  |  1988-12-06  |  3KB  |  81 lines

  1. --------------------------------
  2. ROBOTANK command descriptions
  3. --------------------------------
  4.  
  5. NOTE:   commands marked with * are NOT implemented yet!!
  6.         (Results could be dangerous!)
  7.  
  8. var    - is a symbol/variable of up to 15 characters.
  9.          The first character must be A-Z
  10.          (lower-case converted to upper-case)
  11.          These are created with the MAKE command (see below)
  12.  
  13. :line  - is a line-reference with the same spec's as a symbol
  14.  
  15. num    - can be either a symbol or a numeric constant (-32000 to 32000)
  16.  
  17. --------------------------------------------------------------------
  18.  
  19. :labelref            - Line reference, any text after label is ignored
  20.  
  21. MAKE   var           - Make space for symbol named "var"
  22.                        (should appear at the start of source file)
  23.  
  24. WHEREX var           - Place tanks current X coordinate in symbol "var"
  25.  
  26. WHEREY var           - Place tanks current Y coordinate in symbol "var"
  27.  
  28. CGDIR  var           - Place tanks current GUN direction in symbol "var"
  29.  
  30. CTDIR  var           - Place TANKS current direction in symbol "var"
  31.  
  32. SELECT num           * Select weapon "num"
  33.  
  34. JEQ num1,num2,:line  - if num1 = num2 go to ":line"
  35.  
  36. JLT num1,num2,:line  - if num1 < num2 go to ":line"
  37.  
  38. JGT num1,num2,:line  - if num1 > num2 go to ":line"
  39.  
  40. JNEQ num1,num2,:line - if num1 <> num2 go to ":line"
  41.  
  42. LEFT                 - Turn tank counter-clockwise
  43.  
  44. RIGHT                - Turn tank clockwise
  45.  
  46. GLEFT                - Turn GUN counter-clockwise
  47.  
  48. GRIGHT               - Turn GUN clockwise
  49.  
  50. SET var,num          - sets symbol "var" to "num"
  51.  
  52. ADD var,num          - adds "num" to the current value of "var"
  53.  
  54. RAND var,num         - places a random value from 1-"num" into "var"
  55.  
  56. MOVE                 - Move tank in current direction
  57.  
  58. GOTO :line           - move program execution to ":line"
  59.  
  60. FIRE                 - Fire currently selected weapon in current gun direction
  61.  
  62. CALL :line           - Call sub-routine beginning at ":line"
  63.  
  64. LOADED var           * Place a 1 in "var" if weapon ready to fire,
  65.                        or 0 if not.
  66.  
  67. RETURN               - Return from sub-routine
  68.  
  69. -------------------------------------------------------------------
  70.  
  71. TANK and GUN Directions:             1
  72.                                  8   |   2
  73.                                    \ | /
  74.                                 7 ---+--- 3
  75.                                    / | \
  76.                                  6   |   4
  77.                                      5
  78.  
  79. -------------------------------------------------------------------
  80.  
  81.